package com.zy.cloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: UserConsulController
 * @Description: #TODO
 * @Author: yanzy
 * @Date: 2021/3/2 18:06
 */
@RestController
public class UserConsulController {

    @Value("${server.port}")
    private String serverPort;


    @GetMapping("/user")
    public String getName(String name) {

        return "server with consul:" + serverPort + " :" + name;
    }
}
